package com.action.workreport;

import java.util.ArrayList;

import java.util.List;
import com.db.user.*;
import com.db.workreport.*;

public class UserListAction {
	private UserVO vo=new UserVO();
	private String name;
	private int sabun;
	private int deptno;
private WorkReportDAO reportDAO;
	
	
	
	public void setReportDAO(WorkReportDAO reportDAO) {
		this.reportDAO = reportDAO;
	}

	
	public int getSabun() {
		return sabun;
	}


	public void setSabun(int sabun) {
		this.sabun = sabun;
	}


	public int getDeptno() {
		return deptno;
	}


	public String getName() {
		return name;
	}

	
	public void setDeptno(int deptno) {
		this.deptno = deptno;
	}


	public void setName(String name) {
		this.name = name;
	}



	public UserVO getVo() {
		return vo;
	}


	public void setVo(UserVO vo) {
		this.vo = vo;
	}



	private List<UserVO> list=new ArrayList<UserVO>();
	
	


	public String execute()throws Exception
	{
		vo.setSabun(sabun);
		vo.setDeptno(deptno);
		list=reportDAO.UserList(vo);
		System.out.println(list.toString());
		return "success";
	}


	public List<UserVO> getList() {
		return list;
	}
}
